package com.hzhetun.example.annotation;

import com.hzhetun.example.enums.DataSourceEnum;

import java.lang.annotation.*;

/**
 * 限定只能用在类、接口或者方法上面
 * @author chenbingkun
 * @date 2019-12-25
 */
@Target({ElementType.METHOD,ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface DataSource {
    DataSourceEnum value() default DataSourceEnum.DB1;
}
